package com.pasabahceambalaj.session;

import com.pasabahceambalaj.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("hareketturList")
public class HareketturList extends EntityQuery<Harekettur> {

	private static final String EJBQL = "select harekettur from Harekettur harekettur";

	private static final String[] RESTRICTIONS = { "lower(harekettur.ad) like lower(concat(#{hareketturList.harekettur.ad},'%'))", };

	private Harekettur harekettur = new Harekettur();

	public HareketturList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public Harekettur getHarekettur() {
		return harekettur;
	}
}
